package gof_001_创建型_Create.gof_003_抽象工厂_AbstractFactory.gof_001_Normal;

public class Main {
    public static void main(String[] args) {
        /**################################ 高性能电脑 ################################*/
        Computer computerHigh = new Computer();

        computerHigh.setCpu(new CPU_i7());
        computerHigh.setScreen(new Screen_100());
        computerHigh.setHardDisk(new HardDisk_4T());

        computerHigh.use();


        System.out.println("=========================================");
        /**################################ 低性能电脑 ################################*/
        Computer computerLow = new Computer();

        computerLow.setCpu(new CPU_i3());
        computerLow.setScreen(new Screen_60());
        computerLow.setHardDisk(new HardDisk_1T());

        computerLow.use();
    }
}
